#menu {
  display: flex;
  flex-wrap: wrap;
}
#menu div {
  width: 33.33%;
  padding: 10px;
}
#menu div a {
  float: left;
  width: 100%;
  height: 100%;
  display: block;
  padding: 10px;
  border: 1px solid #ccc;
}
#menu div a img {
  display: block;
  width: 100%;
  height: 80%;
}
#menu div a p {
  text-align: center;
}
